<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}
<link rel="stylesheet" href="static/css/statistic.css">
<div class="content fix">

	<div class="mainContent">
		<div class="AgentReport">
			<div class="ptBar">
				<a href="">首页</a> > 统计报表 > 彩种报表
			</div>
			<form id="search_fit" class="layui-form" action="?" method="get" >
				<input type="hidden" name="m" value="{$m}" />
    			<input type="hidden" name="c" value="{$c}" />
    			<input type="hidden" name="a" value="{$a}" />
				<div  class="tableFilter">
    				<div  class="tableFilterInput" style="width: 120px;">
    					<div>
        					<select name="lott_id">
            					<option value="0">选择分类</option>
            					{loop $lottIdKey as $key => $val}
                                	<option value="{$key}"{if $lott_id == $key} selected="selected" {/if} >{$val['title']}</option>
                                {/loop}
            				</select>
        				</div>
    				</div>
    				<div  class="tableFilterInput">
    					<em>排序</em>
    					<select style="width:100px;float:left;" name="orderby">
    						<option value="0">选择排序</option>
    						<option value="bet_desc" {if $orderby == 'bet_desc'} selected="selected" {/if}>总投注递减</option>
    						<option value="bet_asc" {if $orderby == 'bet_asc'} selected="selected" {/if}>总投注递增</option>
    						<option value="prize_desc" {if $orderby == 'prize_desc'} selected="selected" {/if}>总中奖递减</option>
    						<option value="prize_asc" {if $orderby == 'prize_asc'} selected="selected" {/if}>总中奖递增</option>
    						<option value="betnums_asc" {if $orderby == 'betnums_asc'} selected="selected" {/if}>投注数递增</option>
    						<option value="betnums_desc" {if $orderby == 'betnums_desc'} selected="selected" {/if}>投注数递减</option>
    					</select> 
    					<em>开始时间</em>  
    					<input name="btime" id="btime" type="text" value="{$searchBtime}" class="layui-input date datetimepicker8" style="width:100px;" placeholder="开始日期" />
    					<em>结束时间</em>
    					<input name="etime" id="etime" type="text" value="{$searchEtime}" class="layui-input date datetimepicker8" style="width:100px;" placeholder="结束日期" />
    				</div>
    				<div class="tableButton">
    					<a class="dark" onclick="$('#search_fit').submit();">
    						<i class="iconfont"></i>查询
    					</a> 
    					<a class="dark" style="display: none;">导出Excel</a>
    				</div>
				</div>
			</form>
			<div class="tableList">
				<table>
					<tbody>
						<tr>
							<th width="10%">彩种</th>
							<th width="10%">投注总金额</th>
							<th width="10%">中奖总金额</th>
							<th width="10%">总投注数</th>
							<th width="10%">最大投注数</th>
							<th width="10%">最小投注数</th>
							<th width="10%">最高投注金额</th>
							<th width="10%">最小投注金额</th>
							<th width="">数据日期</th>
						</tr>
						{loop $data as $k => $v}
							<tr>
								<td>{$lottIdKey[$v['lott_id']]['title']}</td>
								<td>{$v['bet_amount']}</td>
								<td>{$v['prize_amount']}</td>
								<td>{$v['bet_count']}</td>
								<td>{$v['bet_max_nums']}</td>
								<td>{$v['bet_min_nums']}</td>
								<td>{$v['bet_max_money']}</td>
								<td>{$v['bet_min_money']}</td>
								<td>{date('Y-m-d', $v['datetime'])}</td>
							<td>
						{/loop}

					</tbody>
				</table>

				<div class="layui-clear">
					<div id="pages" class="layui-laypage">{$multi}</div>
				</div>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript" src="static/js/datetime.js"></script>
{template index/footer}
